package com.fan.shop.services;

import java.util.List;

import com.fan.shop.domain.User;

/**
 *
 * User Service Interface
 *
 * @author onlinetechvision.com
 * @since 25 Mar 2012
 * @version 1.0.0
 *
 */
public interface UserService extends ShopService {

 /**
  * Add User
  *
  * @param  User user
  */
 public void addUser(User user);

 /**
  * Update User
  *
  * @param  User user
  */
 public void updateUser(User user);

 /**
  * Delete User
  *
  * @param  User user
  */
 public void deleteUser(User user);

 /**
  * Get User
  *
  * @param  int User Id
  */
 public User getUser(String username);

 /**
  * Get User List
  *
  * @return List - User list
  */
 public List<User> getAllUsers();
 
 public boolean hasUser(String username);
 
 public User getCurrentUser();
 
 public void setCurrentUser(User user);
 
 public String getCurrentUserGroup();
 
 public boolean isCurrentUserGroupAdmin();
 
}
